export const addtocart=(item)=>{
  return { type: 'addtocart', payload: item}
}
export const add = (id) => {
  return { type: 'add', payload: id}
}
export const reduce = (id) => {
  return { type: 'reduce', payload: id }
}
export const remove = (id) => {
  return { type: 'remove', payload: id }
}
export const clear = (id) => {
  return { type: 'clear' }
}